package com.myjob.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.shopgoods.common.core.annotation.Excel;
import com.shopgoods.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 品牌对象 brand
 *
 * @author shopgoods
 * @date 2024-11-22
 */
@TableName(value = "brand")
public class Brand implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 品牌编号 */
    @TableId(type = IdType.AUTO)
    private Integer brandId;

    /** 品牌名 */
    @NotNull(message = "品牌名不能为空")
    private String brandName;

    /** 品牌Logo */
    @NotNull(message = "品牌Logo不能为空")
    private String brandPic;

    /** 品牌介绍 */
    @NotNull(message = "品牌介绍不能为空")
    private String brandText;

    /** 品牌显示状态 为1是 显示 为2是 不显示 */
    @NotNull(message = "品牌显示状态不能为空")
    private Integer brandStatus;

    /** 检索首字母 */
    @NotNull(message = "检索首字母不能为空")
    @Pattern(regexp = "^[A-Z]$",message = "检索首字母只能是大写字母")
    private String brandInitial;

    /** 排序 */
    @NotNull(message = "排序不能为空")
    private String brandSort;

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandName(String brandName)
    {
        this.brandName = brandName;
    }

    public String getBrandName()
    {
        return brandName;
    }
    public void setBrandPic(String brandPic)
    {
        this.brandPic = brandPic;
    }

    public String getBrandPic()
    {
        return brandPic;
    }
    public void setBrandText(String brandText)
    {
        this.brandText = brandText;
    }

    public String getBrandText()
    {
        return brandText;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public Integer getBrandStatus() {
        return brandStatus;
    }

    public void setBrandStatus(Integer brandStatus) {
        this.brandStatus = brandStatus;
    }

    public void setBrandInitial(String brandInitial)
    {
        this.brandInitial = brandInitial;
    }

    public String getBrandInitial()
    {
        return brandInitial;
    }
    public void setBrandSort(String brandSort)
    {
        this.brandSort = brandSort;
    }

    public String getBrandSort()
    {
        return brandSort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("brandId", getBrandId())
            .append("brandName", getBrandName())
            .append("brandPic", getBrandPic())
            .append("brandText", getBrandText())
            .append("brandStatus", getBrandStatus())
            .append("brandInitial", getBrandInitial())
            .append("brandSort", getBrandSort())
            .toString();
    }
}
